package com.woniuxy01;

class Aaa{
    Object o;

}

//泛型类
class Bbb<T>{
    T o;
}

//泛型类
class Ccc <T>{

    public T test(T t){
        return t;
    }
}
class Ddd {
    //泛型方法
    public <T> T test(T t){
        return t;
    }
}

public class Test02 {
    public static void main(String[] args) {
        Aaa aaa = new Aaa();
        aaa.o =1;
        aaa.o ="aaa";

        Bbb<String> bbb = new Bbb<String>();
        bbb.o="aaa";
//        bbb.o=12;
    }

}
